package model

// User 用户表
type Cimgs struct {
	Id    int    `json:"id" form:"id"`
	Cid   int    `json:"cid" form:"cid"`
	Imgs  string `json:"imgs" form:"imgs"`
	Date  string `json:"date" form:"date"`
	Isimg int    `json:"isimg" form:"isimg"`
	Type  string `json:"type" form:"type"`
}

func CimgsAll(cid string) ([]Cimgs, error) {
	mods := make([]Cimgs, 0, 4)
	err := DB.Select(&mods, "select * from cimgs where cid=?", cid)
	return mods, err
}
